from flask import Flask
from routes.index import bp as index_bp
from routes.login import bp as login_bp
from routes.register import bp as register_bp
from routes.logout import bp as logout_bp
from routes.bottle import bp as bottle_bp
from routes.message import bp as message_bp

app = Flask(__name__)

# 注册蓝图
app.register_blueprint(index_bp)
app.register_blueprint(login_bp)
app.register_blueprint(register_bp)
app.register_blueprint(logout_bp)
app.register_blueprint(bottle_bp)
app.register_blueprint(message_bp)

if __name__ == '__main__':
    app.run()